package com.jswlw.controller.distributor;

import com.jswlw.web.manager.SessionDistributorManager;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author 吴维斌 E-mail:wuweibin0817@163.com
 * @version 创建时间：${date} ${time}
 */
@Controller
@RequestMapping("/distributor/center")
public class DistributorCenterController {

    @RequestMapping("index")
    public ModelAndView index() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("/distributor/center/index");
        modelAndView.addObject("info", SessionDistributorManager.getCurrentUser());

        return modelAndView;
    }

    @RequestMapping("userInfo")
    public ModelAndView userInfo() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("distributor/center/userInfo");
        return modelAndView;
    }

    @RequestMapping("helperInfo")
    public ModelAndView helperInfo() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("distributor/center/helperInfo");
        return modelAndView;
    }
}
